home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / usr / share / pyshared / invest / about.py < prev    next >
Text File  |  2009-10-20  |  1KB  |  39 lines

  1. # -*- coding: utf-8 -*-
  2. from os.path import join
  3. from gettext import gettext as _
  4. from invest.defs import VERSION
  5. import invest
  6. import gtk, gtk.gdk
  7. from gnome import url_show
  8.  
  9. gtk.about_dialog_set_email_hook(lambda dialog, email: url_show("mailto:%s" % email))
  10.  
  11. invest_logo = None
  12. try:
  13.     invest_logo = gtk.gdk.pixbuf_new_from_file_at_size(join(invest.ART_DATA_DIR, "invest_neutral.svg"), 96, 96)
  14. except Exception, msg:
  15.     pass
  16.     
  17. def show_about():
  18.     about = gtk.AboutDialog()
  19.     infos = {
  20.         "program-name" : _("Invest"),
  21.         "logo" : invest_logo,
  22.         "version" : VERSION,
  23.         "comments" : _("Track your invested money."),
  24.         "copyright" : "Copyright ┬⌐ 2004-2005 Raphael Slinckx."
  25.     }
  26.  
  27.     about.set_authors(["Raphael Slinckx <raphael@slinckx.net>"])
  28. #    about.set_artists([])
  29. #    about.set_documenters([])
  30.     
  31.     #translators: These appear in the About dialog, usual format applies.
  32.     about.set_translator_credits( _("translator-credits") )
  33.     
  34.     for prop, val in infos.items():
  35.         about.set_property(prop, val)
  36.     
  37.     about.connect ("response", lambda self, *args: self.destroy ())
  38.     about.show_all()
  39.